package h2UDP;

import java.io.IOException;
import java.net.*;
import java.nio.charset.StandardCharsets;

public class Send {
    public static void main(String[] args) throws IOException {

       DatagramSocket ds=new DatagramSocket();

       byte []bys="hello i am chs".getBytes(StandardCharsets.UTF_8);
       DatagramPacket dp=new DatagramPacket(bys,bys.length, InetAddress.getByName("127.0.0.1"),10085);

       ds.send(dp);
       ds.close();
    }
}
